package com.team.service;

import com.team.vo.AppointmentMessage;
import com.team.vo.PersonalInformation;
import com.team.vo.Result;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author keluoyisi
 * @program: seven
 * @description: 预约业务层接口
 * @date 2022-10-19 16:54:33
 */
public interface AppointmentService {
    /**
     * @param :
     * @return Result
     * @description  显示所有部门以及对应的科室
     */
    public Result selectDeptSection();

    /**
     * @param id:
     * @return Result
     * @description  得到科室的id并且存在session中
     */
    Result addSectionId(int id);

    /**
     * @param appointmentMessage:
     * @return Result
     * @description 预约数量加1
     */
    Result addVisitCount(AppointmentMessage appointmentMessage);

    /**
     * @param :
     * @return Result
     * @description 预约数量减1
     */
    Result cancel();
    /**
     * @param personalInformation:
     * @return Result
     * @description 接收个人信息，创建预约订单
     */
    Result toRegistration(PersonalInformation personalInformation);


}
